def code_1():
    import jnius_config
    jnius_config.add_classpath(r"G:\JavaExtensions\fastjson-1.1.34.jar")

    from jnius import autoclass

    System = autoclass("java.lang.System")
    System.out.println("你好，Java")
    System.out.print("666")
    print("你好，Java")
    print(System)

    HashMap = autoclass("java.util.HashMap")
    map_obj = HashMap()
    map_obj.put("a", 1)

    fastjson = autoclass("com.alibaba.fastjson.JSON")
    System.out.println(fastjson.toJSONString(map_obj))

    ArrayList = autoclass("java.util.ArrayList")
    lst = ArrayList()
    lst.add("hello")
    lst.add("world")
    print([lst.get(i) for i in range(lst.size())])

    print(f"system property java.version is {System.getProperty('java.version')}")

    System.out.println("666,真的有人会实名上网吗？")


if __name__ == "__main__":
    code_1()
